import {createStore} from 'vuex'
export default createStore({
    state:{//全局变量
        num:0,
        username:'李四'
    },
    mutations:{//全局函数
        editfn:(state,val)=>{
            state.username = val
        },
    },
    actions:{},
    modules:{},
})
